package com.fcg.redis.refresh.controller;

import com.fcg.redis.refresh.bean.CacheInvoker;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author FCG
 */
@Slf4j
@RestController
public class RefreshController {
    @RequestMapping("refresh")
    public Object doRefresh() {
        CacheInvoker.doInvokes();
        log.info("refresh done!");
        return "refresh done!";
    }
}
